package com.okaixz.client.controller;


import com.okaixz.client.model.domain.DuJiTang;
import com.okaixz.client.service.IDuJiTangService;
import com.okaixz.common.client.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cdz
 * @since 2025-09-02
 */
@RestController
@RequestMapping("/kb/duJiTang")
public class DuJiTangController {
    @Autowired
    private IDuJiTangService duJiTangService;

    @RequestMapping("/getone")
    public Result<String> getOne(){
        DuJiTang jiTang=duJiTangService.getOne();
        return Result.success(jiTang.getContent());
    }

}
